package com.mark.dao;

import com.mark.pojo.Category;

import java.util.List;

public interface CategoryMapper {

    //1.添加商品类别
    int insert(Category record);

    //2.更新商品类别名称
    int updateByPrimaryKeySelective(Category record);

    //3.查找同一级别下的结点
    List<Category> selectCategoryChildrenByParentId(Integer parentId);



    int deleteByPrimaryKey(Integer id);



    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);



    int updateByPrimaryKey(Category record);


}